#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date    : 2025-02-03-21:28
# @Author  : 程序员CK君
# @File    : load-onnx_model.py
# @Software: PyCharm
#inference only for onnx

import warnings
warnings.filterwarnings('ignore')
from ultralytics import YOLO


if __name__ == '__main__':
    model = YOLO('D:/project/projects/python/ultralytics/runs/detect/train2/weights/best.pt')
    model.predict(source='G:/project/python/ultralytics-TT100K/ultralytics/datasets/original-license-plates/other',
                  imgsz=640,
                  # project='runs/detect',
                  name='exp',
                  save=True,
                  conf=0.2,
                  iou=0.7,
                )


